package com.shadow.ui.progress.sweetalert;

import android.app.Dialog;

/**
 * @author zhangyu
 * @date 2018/3/8
 */

public interface IDialog {
    void showProgressDialog(boolean canCancel,String title,String msg);
    void showProgressDialogWithCancel(String title,String msg,
                            IDialogClickListener clickListener);
    void changeText(String title,String msg);
    void showSuccess(String title, String msg, IDialogClickListener clickListener);
    void showFailed(String title, String msg, IDialogClickListener clickListener);
    void showWarning(String title, String msg, IDialogClickListener clickListener);
    void clearDialog();
    void stopProgressWithSuccess(String option, String msg, IDialogClickListener listener);
    void changeToProgressType(String msg);

    void stopProgressWithFailed(String option, String msg);
    Dialog getDialog();
}
